build a temperature converter with javascript